package com.yoyo.yyadsdk.bean.dao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Unique;

@Entity
public class ShortcutEntity {

    /**
     * id : 0
     * title : 快捷方式名称
     * icon : 快捷方式图标路径
     * url : 点击跳转后的Url
     * startTime : 开始生效时间
     * endTime : 生效结束时间
     * frequency : 周期内的点击次数
     * ruleId : 0 黑白名单规则id
     */
    @Id(autoincrement = true)
    private Long _id;
    @Unique
    private int id;
    private String title;
    private String icon;
    private String url;
    private long startTime;
    private long endTime;
    private int frequency;
    private int ruleId;

    @Generated(hash = 1004399941)
    public ShortcutEntity(Long _id, int id, String title, String icon, String url,
                          long startTime, long endTime, int frequency, int ruleId) {
        this._id = _id;
        this.id = id;
        this.title = title;
        this.icon = icon;
        this.url = url;
        this.startTime = startTime;
        this.endTime = endTime;
        this.frequency = frequency;
        this.ruleId = ruleId;
    }

    @Generated(hash = 534943639)
    public ShortcutEntity() {
    }

    public Long get_id() {
        return this._id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }

    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getStartTime() {
        return this.startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return this.endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public int getFrequency() {
        return this.frequency;
    }

    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }

    public int getRuleId() {
        return this.ruleId;
    }

    public void setRuleId(int ruleId) {
        this.ruleId = ruleId;
    }


}
